package com.situ.mall.web.controller;


import com.situ.mall.common.util.RequestUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/")
public class LogoutController {
    @GetMapping("/logout")
    public String page(){
        RequestUtil.removeCurrent("CurrentUser");
        return "redirect:/login";
    }
}
